package com.shiguiwu.springmybatis.spring.event.demo;

import org.springframework.context.ApplicationListener;

/**
 * @description: 监听器
 * @author: stone
 * @date: Created by 2021/4/8 19:07
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.event.demo
 */
public class SendEmailOnOrderCreateListener implements ApplicationListener<OrderCreateEvent> {

    @Override
    public void onApplicationEvent(OrderCreateEvent event) {
        System.out.println("生成订单，发送mail........" + event.getOrderId());

    }
}
